﻿/*
 * 
 *	C# representation of 'researchRepo.permissionTypes' table:
 *	
 *	A simple enumeration of permission types defined in order for easy comparison.
 * 
 */

namespace ResearchRepository.Models
{
	public enum RRPermissionType
	{
		None, View, Read, Write, Admin
	};
		/*
		public RRPermissionType(int pID, string pName)
		{
			PermId = pID;
			PermName = pName;
		}
		public RRPermissionType(RRPermissionType source)
			:this(source.PermId,
					source.PermName)
		{}
		public RRPermissionType(System.Data.IDataRecord source)
			:this((int) source["permID"],
					(string) source["permName"])
		{}

		// named alias for constructor, provides handle to simulate a function pointer to constructor
		public static RRPermissionType construct(System.Data.IDataRecord source)
		{
			return new RRPermissionType(source);
		}

		public int PermId { get; set; }
		public string PermName { get; set; }
		
	}
		*/
}